import basicBlock from './basic-block/main';
import basicContainer from './basic-container/main';
import thirdRegister from './third-register/main';
import avueUeditor from 'avue-plugin-ueditor';
import activiti from './activiti/main';
import basicFormButton from './basic-form-button/main';
import noData from './noData/main';
import elButton from './el-button/main';
import basicPageHeader from './basic-page-header/main';

import rsComponents from './rs-components/index';


export default function RegisterGlobalComponents(Vue){
  let components = {
    basicContainer,
    basicBlock,
    thirdRegister,
    avueUeditor,
    activiti,
    basicFormButton,
    noData,
    elButton,
    basicPageHeader,
    ...rsComponents
  }

  Object.keys(components).forEach(
    key => {
      Vue.component(components.name || key, components[key]);
    }
  )
}
